/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package mii.dao.impl;

import entity.JenisService;
import java.util.List;
import javax.persistence.EntityManager;
import mii.dao.JenisServiceDAO;

/**
 *
 * @author Sven
 */

public class JenisServiceDAOImpl extends GenericDAOImpl implements JenisServiceDAO{

    
     public JenisServiceDAOImpl(EntityManager em){
        super(em);
    }
    @Override
    public JenisService getById(long id) {
       // throw new UnsupportedOperationException("Not supported yet."); //To change body of generated methods, choose Tools | Templates.
        return this.em.find(JenisService.class, id);
    }

    @Override
    public List<JenisService> getAll() {
        //throw new UnsupportedOperationException("Not supported yet."); //To change body of generated methods, choose Tools | Templates.
        return this.em.createQuery("SELECT j FROM Jenisservice J").getResultList();
    }
    
}
